import { request } from '@umijs/max';

export function updateRole(userId: string, roleIds: string[]): Promise<any> {
  return request('/api/resources/user/' + userId + '/role', {
    method: 'put',
    data: roleIds,
  });
}

export function move2Org(userId: string, orgId: string): Promise<any> {
  return request('/api/resources/user/' + userId + '/org/' + orgId + '/属于', {
    method: 'post'
  });
}